import { RouterProvider, Routes, Route } from 'react-router-dom';

import routes from './router/index';

function App() {
  return (
    // <BrowserRouter>
    //   <Routes>
    //     {routes.map(({ path, element }) => (
    //       <Route path={path} element={element} key={path} />
    //     ))}
    //   </Routes>
    // </BrowserRouter>
    <RouterProvider router={routes}>
      
    </RouterProvider>
  );
}
export default App
